﻿using UnityEngine;
using System.Collections;

public class UIOperate : MonoBehaviour
{

    public GameObject panel = null;




    public void Hide()
    {
        if (panel != null)
        {
            panel.SetActive(false);
        }
    }
    public void Show()
    {
        if (panel != null)
        {
            panel.SetActive(true);
        }
    }


    public void MyDestroy()
    {
        if (panel != null)
        {
            Destroy(panel);
            panel = null;
        }
    }





    void Start ()
    {
	
	}
	

	void Update ()
    {
	
	}
}
